package com.liang.design;

import java.math.BigDecimal;

/**
 * @author lsm
 * @ClassName Context.java
 * @Description TODO
 * @createTime 2023年12月06日 16:45:00
 */
public class Context<T> {

    private ICouponDiscount<T> couponDiscount;
    public Context(ICouponDiscount<T> couponDiscount) {
        this.couponDiscount = couponDiscount;
    }
    public BigDecimal discountAmount(T couponInfo, BigDecimal skuPrice) {
        return couponDiscount.discountAmount(couponInfo, skuPrice);
    }
}
